package HomeWork.msg.service;

public interface MsgFactory {
    static SendMsg getSendMsg(int num){
        if (num == 0){
            return new AliyunSendMsg();
        } else if (num == 1){
            return new TencentSendMsg();
        } else {
            System.out.println("输入的选项有误");
            return null;
        }
    }
}
